Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use new policy checker for iam.roles #2055

Merged
merged 1 commit into from
May 2, 2024

Conversation

max-melentyev
Copy link
Contributor

To not trigger update event and update role in AWS when AWS changes formatting in policy document.

Description of your changes

Policy checker in pkg/utils/policy/old considers that policies are different if one of them has "Action": "x" and another one has "Action": ["x"]. This PR fixes it.

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

  • existing and new test cases

@max-melentyev max-melentyev force-pushed the role-policy branch 3 times, most recently from 19c6ac6 to 4ecfa0d Compare May 2, 2024 00:42
To not trigger update event and update role in AWS
when AWS changes formatting in policy document.

Signed-off-by: Max Melentyev <max.melentyev@reddit.com>
Copy link
Collaborator

@MisterMX MisterMX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you very much @max-melentyev!

@MisterMX MisterMX merged commit a49ef55 into crossplane-contrib:master May 2, 2024
9 checks passed
@max-melentyev max-melentyev deleted the role-policy branch May 2, 2024 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants